/**
 * 
 */
package org.cuatrovientos.imc;

import java.util.Scanner;

/**
 * @author Teodor_mivovan
 *
 */
public class Imc {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		//Declare variables
		double NumberWeight=0;
		double NumberHeight=0;
		double Imc=0;
		String Weight = ""; 
		String Height ="";
		
		//Import Scanner
		Scanner reader= new Scanner(System.in);
		
		//Ask for information
		System.out.println("Please enter your weight in kilograms: ");
		Weight = reader.nextLine();
		NumberWeight = Integer.parseInt(Weight);
		
		System.out.println("Please your height in metres: ");
		Height = reader.nextLine();
		NumberHeight = Double.parseDouble(Height);
		
		Imc = (NumberWeight/(NumberHeight*NumberHeight));
		
		//Answers depending on the IMC
		if(Imc<16){
			System.out.println("You have to eat more");
		}else{
			if(Imc>=16 & Imc<25){
				System.out.println("You are OK");
			}else{
				if(Imc>=25 & Imc<30){
					System.out.println("You have to care more about yourself");
				}else{
					System.out.println("Go to the hospital");
				}
			}
		}
	}

	}


